package com.johson.covid19server.dao;

import com.johson.covid19server.pojo.CovidCase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import java.util.List;

// @Mapper
public interface CovidCaseDao {
    public CovidCase getCovidCaseById(Long id);
    public List<CovidCase> selectAll();
    public List<CovidCase> queryByDate(String queryDate);
    public void insertCovidCase(CovidCase covidCase);
    public void deleteCovidCase(Long id);
    public void updateCovidCase(CovidCase covidCase);

}